#include "map.h"

map::map()
{
   map1.load(MAP_PATH);
   map2.load(MAP_PATH);

   map1_posY=-GAME_HEIGHT;
   map2_posY=0;

   map_speed=MAP_SPEED;
}
void map::mapPosition()
{
    map1_posY+=map_speed;
    if(map1_posY>=0){
        map1_posY=-GAME_HEIGHT;
    }

    map2_posY+=map_speed;
    if(map2_posY>=GAME_HEIGHT){
        map2_posY=0;
    }
}
